package com.kgc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Discount {
    private Integer id;

    private String discountnum;

    private String discountname;

    private BigDecimal discountprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endtime;

    private String dCondition;

    private Integer statusid;

    private Integer userid;

    private String discountform;

    private String discountdetail;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDiscountnum() {
        return discountnum;
    }

    public void setDiscountnum(String discountnum) {
        this.discountnum = discountnum == null ? null : discountnum.trim();
    }

    public String getDiscountname() {
        return discountname;
    }

    public void setDiscountname(String discountname) {
        this.discountname = discountname == null ? null : discountname.trim();
    }

    public BigDecimal getDiscountprice() {
        return discountprice;
    }

    public void setDiscountprice(BigDecimal discountprice) {
        this.discountprice = discountprice;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getdCondition() {
        return dCondition;
    }

    public void setdCondition(String dCondition) {
        this.dCondition = dCondition == null ? null : dCondition.trim();
    }

    public Integer getStatusid() {
        return statusid;
    }

    public void setStatusid(Integer statusid) {
        this.statusid = statusid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getDiscountform() {
        return discountform;
    }

    public void setDiscountform(String discountform) {
        this.discountform = discountform == null ? null : discountform.trim();
    }

    public String getDiscountdetail() {
        return discountdetail;
    }

    public void setDiscountdetail(String discountdetail) {
        this.discountdetail = discountdetail == null ? null : discountdetail.trim();
    }
}